	#Title: Programa 27				Filename: 27.s
	#Author: Chipres Castellanos Ana Maria          Date: 23 /mayo / 2017
	#Descripcion:
	#Hacer un programa para imprimir la suma diferencia producto de dos numero complejos
	#usar los siguientes numeros complejos como datos
	#a)2+3i y 3+4i
	#b)5+7i y 1+4i
	#c)21+3i y 14+107i
	
	.arch armv6
	.eabi_attribute 27, 3
	.eabi_attribute 28, 1
	.fpu vfp
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 1
	.eabi_attribute 18, 4
	.file	"27.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"La suma a) es: %i + (%i)i. \012\000"
	.align	2
.LC1:
	.ascii	"La diferencia b) es: %i + (%i)i. \012\000"
	.align	2
.LC2:
	.ascii	"El producto c) es: %i + (%i)i. \012\000"
	.text
	.align	2
	.global	main
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	stmfd	sp!, {fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	mov	r3, #2
	str	r3, [fp, #-8]
	mov	r3, #3
	str	r3, [fp, #-12]
	mov	r3, #3
	str	r3, [fp, #-16]
	mov	r3, #4
	str	r3, [fp, #-20]
	mov	r3, #5
	str	r3, [fp, #-24]
	mov	r3, #7
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #4
	str	r3, [fp, #-36]
	mov	r3, #21
	str	r3, [fp, #-40]
	mov	r3, #3
	str	r3, [fp, #-44]
	mov	r3, #14
	str	r3, [fp, #-48]
	mov	r3, #107
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r0, .L3
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-60]
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	rsb	r3, r3, r2
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	rsb	r3, r3, r2
	str	r3, [fp, #-68]
	ldr	r0, .L3+4
	ldr	r1, [fp, #-64]
	ldr	r2, [fp, #-68]
	bl	printf
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	mul	r2, r2, r3
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-52]
	mul	r2, r2, r3
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r0, .L3+8
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-76]
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	ldmfd	sp!, {fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Raspbian 4.9.2-10) 4.9.2"
	.section	.note.GNU-stack,"",%progbits
